<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% String path = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath(); %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="<%=path %>/css/listVip.css">
</head>
<body>
	<table>
	<!-- 表头 -->
	<thead>
		<tr>
		<td>行号</td>
		<td>日期</td>
		<td>销售盈利</td>
		</tr>
	</thead>
	<tbody>

	 <c:forEach items="${listGain }" var="gain" varStatus="status">
	 	<tr <c:if test="${status.index % 2 == 0}">class="one"</c:if>
				<c:if test="${status.index % 2 != 0}">class="two"</c:if>>	
	 	<td>${status.index + 1 }</td>
	 	<td>${gain.date }</td>
	 	<td>${gain.dateGain }</td>
	 	</tr>
	 </c:forEach>
	
	</tbody>

</table>
</body>
</html>